
function UserInfo(io_obj){
	/** PRIVATE */
	this._io_obj = null;
	this._moveStep = null;
	this._canPlay = null;
	
	this._moveStart = null;
	this._moveEnd = null;


	/** PUBLIC */
	this._constructor = function userInfo__constructor (io_obj) {
		this._io_obj = io_obj;
		this._moveStep = 0;
		this._canPlay = true;
	}

	this.resetStep = function userInfo_resetStep () {
		this._moveStep = 0;	
	}

	this.isFirstStep = function userInfo_isFirstStep () {
		return (this._moveStep == 0);	
	}

	this.nextMoveStep = function userInfo_nextMoveStep () {
		this._moveStep = this._moveStep + 1;
		if (this._moveStep > 1){
			this._canPlay = false;
			this._moveStep = 0;
		}
	}
	
	this.canPlay = function userInfo_canPlay (){
		// if not => it is the opponent's turn
		return true;
	}

	this.setMoveStart = function userInfo_setMoveStart (loc_obj){
		this._moveStart = loc_obj;		
	}

	this.getMoveStart = function userInfo_getMoveStart (loc_obj){
		return this._moveStart;
	}

	this.setMoveEnd = function userInfo_setMoveEnd (loc_obj){
		this._moveEnd = loc_obj;		
	}

	this.getMoveEnd = function userInfo_getMoveEnd (loc_obj){
		return this._moveEnd;
	}


	/** CONSTRUCT ! */
	this._constructor (io_obj);
}
